package com.zhuss.excecise.db.dao.ext;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.bo.SearchKeyWordBo;
import com.zhuss.bean.bo.excecise.excecise.SearchExceciseBo;
import com.zhuss.bean.bo.excecise.excecise.wechat.ListExceciseBo;
import com.zhuss.bean.vo.DetailKeyWordVo;
import com.zhuss.bean.vo.excecise.excecise.DetailExceciseVo;
import com.zhuss.bean.vo.excecise.excecise.ListExceciseVo;
import com.zhuss.excecise.db.dao.gen.ExceciseMapper;
import com.zhuss.excecise.db.entity.Excecise;

@Mapper
public interface ExceciseDao extends ExceciseMapper {
	
	void create(Excecise record);
	
	void delete(Excecise record);
	
	List<Excecise> listAll(@Param("area") Integer area);

	List<ListExceciseVo> list(SearchExceciseBo bo);

	Integer countList(SearchExceciseBo bo);

	DetailExceciseVo detail(@Param("exceciseId") Long exceciseId);

	List<DetailExceciseVo> listExcecise(ListExceciseBo bo);
	
	Integer countExceciseList(ListExceciseBo bo);
	
	List<DetailKeyWordVo> keyWord(SearchKeyWordBo bo);
	
	Integer countKeyWord(SearchKeyWordBo bo);
    
}